package com.example.supplychainbackend.dao.design;

import com.example.supplychainbackend.entity.design.ECNEntity;
import com.example.supplychainbackend.entity.sales.ContractEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ECNDao extends JpaRepository<ECNEntity, Long> {
    Optional<ECNEntity> findByEcnNumber(String ecnNumber);
    Long deleteByEcnNumber(String ecnNumber);

    List<ECNEntity> findAllByEnterpriseId(String enterpriseId);

}